// Fill out your copyright notice in the Description page of Project Settings.


#include "UE5_Cpp/Public/MyGameMode.h"

AMyGameMode::AMyGameMode()
{
	DefaultPawnClass = AMyPawn::StaticClass();
	PlayerControllerClass = AMyPlayerController::StaticClass();
	GameStateClass = AMyGameState::StaticClass();
	HUDClass = AMyHUD::StaticClass();
	PlayerStateClass = AMyPlayerState::StaticClass();
}

void AMyGameMode::BeginPlay()
{
	Super::BeginPlay();
	//日志记录常用三种等级Error、Warning、Display
	UE_LOG(LogTemp, Display, TEXT("Display Log."));
	UE_LOG(LogTemp, Warning, TEXT("Warning Log."));
	UE_LOG(LogTemp, Error, TEXT("Error Log."));
}

void AMyGameMode::Tick(float DeltaSeconds)
{
	Super::Tick(DeltaSeconds);
}

void AMyGameMode::EndPlay(const EEndPlayReason::Type EndPlayReason)
{
	Super::EndPlay(EndPlayReason);
}
